//
//  MLASavePinPutInOutDetailVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/24.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLASavePinPutInOutDetailVC.h"
#import "MLASavePinPutInOutModel.h"
#import "MLASavePinPutEntryVC.h"

@interface MLASavePinPutInOutDetailVC ()

@end

@implementation MLASavePinPutInOutDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];

    NSString *title;
    if ([_type isEqualToString:@"1"]) {
        title = @"入库登记";
    } else {
        title = @"出库登记";
    }
    [self configTitle:title];
    
    self.showAccessoryView = YES;
    
    self.titlesArr = @[[NSString stringWithFormat:@"类别：%@",_model.type_name],
                       [NSString stringWithFormat:@"名称：%@",_model.name],
                       [NSString stringWithFormat:@"数量：%@",_model.sum],
                       [NSString stringWithFormat:@"仓库名：%@",_model.room_name],
                       [NSString stringWithFormat:@"采购员：%@",_model.apply_name],
                       [NSString stringWithFormat:@"核验人：%@",_model.audit_name]];
    [self.tableView reloadData];
    
}



//- (void)rightItemAction {
//    CXLog(@"出库登记");
//    MLASavePinPutEntryVC *entryVC = [[MLASavePinPutEntryVC alloc] init];
//    entryVC.type = @"2";
//    if ([_type isEqualToString:@"2"]) {
//        entryVC.model = _model;
//    }
//    [self.navigationController pushViewController:entryVC animated:YES];
//    @weakify(self);
//    entryVC.applySuccessBlock = ^{
//        @strongify(self);
//        [self loadData];
//    };
//}

@end
